package com.bloveoa.zkkd.doman;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Table(name = "t_locked_token")
@Data
@Accessors(chain = true)
@DynamicInsert
@DynamicUpdate
@Entity
@ApiModel(value = "LockedTokenModel", description = "锁仓token")
public class LockedTokenModel implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", insertable = false, nullable = false)
    private Integer id;

    @ApiModelProperty(value = "锁仓用户id", name = "userId", example = "54c8ae86cbbf6dc")
    @Column(name = "user_id")
    private String userId;

    @ApiModelProperty(value = "锁仓数量", name = "lockedTokenNum", example = "1")
    @Column(name = "locked_token_num")
    private Integer lockedTokenNum;

    @ApiModelProperty(value = "锁仓时长", name = "lockedLong", example = "1")
    @Column(name = "locked_long")
    private Integer lockedLong;
    @ApiModelProperty(value = "锁仓还是解锁", name = "lockedType", example = "1")
    @Column(name = "locked_type")
    private Integer lockedType;

    @ApiModelProperty(value = "锁仓开始时间", name = "createTime", example = "")
    @Column(name = "create_time")
    private Date createTime;
    @ApiModelProperty(value = "锁仓结束时间", name = "lockEndTime", example = "")
    @Column(name = "lock_end_time")
    private Date lockEndTime;
    @ApiModelProperty(value = "锁仓开始时间", name = "lockStartTime", example = "")
    @Column(name = "lock_start_time")
    private Date lockStartTime;
    @Column(name = "flag_delete")
    private Boolean flagDelete;

}
